<!DOCTYPE html>
<html>
<head>
	<title>页面编辑</title>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<meta content="yes" name="apple-mobile-web-app-capable">
	<meta content="yes" name="apple-touch-fullscreen">
	<meta content="telephone=no,email=no" name="format-detection">
	<meta content="telephone=no,email=no" name="format-detection">
	
	<script type="text/javascript" src="../js/photoNewBook/jisuan.js"></script>
	<link rel="stylesheet" href="../css/common.css?v={$WST_V}">
   <link rel="stylesheet" type="text/css" href="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/css/photoNewBook/templet.css"/>
   <link rel="stylesheet" type="text/css" href="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/css/photoNewBook/layui.css"/>
   <link rel="stylesheet" href="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/css/photo_edit.css" type="text/css">
	<!--<link rel="stylesheet" type="text/css" href="../default/css/photoNewBook/parentOffspring.css"/>-->
	<include file="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/common_js.html" />
	<link rel="stylesheet" type="text/css" href="../css/photoNewBook/warn.css"/>
    <style type="text/css">
    	
    	.whole{
    		margin-top: 0rem;
    	}
    	.Foot{
    		top: 1.3rem;
    		box-shadow:none;
    	}
    	.Conter {
		
		    margin-top: 2rem;
			}
.return {
    width: 100%;
    height: 1.3rem;
    background-color: #87E1D5;
    position: relative;
}
.return>.img_1 {
      margin-top: 0.4rem;
    width: 0.3rem;
    margin-left: 0.5rem;
}
.return>b {
   font-size: 0.5rem;
    position: absolute;
    margin-left: 33%;
    margin-top: 3%;
    color: #4C4C4C;
}
.container{
	margin-top: 1.8rem;
	position: absolute;
}
.clearfix>div{
 width: 2.5rem !important;
	height: 1.5rem !important;

}
.webuploader-element-invisible{
	 width: 2.5rem !important;
	height: 1.5rem !important;
}
		.upload_box{width:800px; margin:1em auto;}
		.upload_choose{padding:1em;}
		.upload_drag_area{display:inline-block; width:60%; padding:4em 0; margin-left:.5em; border:1px dashed #ddd; background:#fff url(./drag.png) no-repeat 20px center; color:#999; text-align:center; vertical-align:middle;}
		.upload_drag_hover{border-color:#069; box-shadow:inset 2px 2px 4px rgba(0, 0, 0, .5); color:#333;}
		.upload_preview{border-top:1px solid #bbb; border-bottom:1px solid #bbb; background-color:#fff; overflow:hidden; _zoom:1;}
		.upload_append_list{height:300px; position:relative;}
		.upload_delete{margin-left:2em;}
		.upload_image{max-height:250px; padding:5px;}
		.upload_submit{padding-top:1em; padding-left:1em;}
		.upload_submit_btn{display:none; height:32px; font-size:14px;}
		.upload_loading{height:250px; background:url(/study/image/preload.gif) no-repeat center;}
		.upload_progress{display:none; padding:5px; border-radius:10px; color:#fff; background-color:rgba(0,0,0,.6); position:absolute; left:25px; top:45px;}
		.zoomableContainer{
			text-align: center;
			left: 0px !important;
			top: 0px !important;
		}
/*
 *插页图片
 */
	.insert{
		width:100%;
		height:100%;
	}

	.erweima{
		width: 100%;
		height:auto;
		padding-top:0.533333rem;
	}
.text{
	border: none;
}
.logo{
	width: 100%;
}
.shady1{
	z-index: 120;
    position: absolute;
    margin-top: -42%;
   margin-left: 0%;
   width: 100%;
}
.shady2{
	    position: absolute;
    z-index: 120;
   margin-left: 10%;
    margin-top: -80%;
     width: 80%;
}
.shade3{
	z-index: 120;
	display: none;
	margin-left: 0;
}
.point{
	position: relative;
	top: 0;
	display: none;
}

.upload-div{
	display: none;
}
.ima_mb{
	display: none;
}
.upload-div{
	display: none !important;
}
    </style>

</head>

<body>
	
	<div class="whole">
		<div class="return">
				 <img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/index/app/index/fanhui_zuo.png" alt="" class="img_1" onclick="Return(1)"/>
				 <b>编辑内容</b>
		</div>
		<div class="Conter">		
            <img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/photoNewBook/logo.png" class="logo">         
           </div>
		</div>
		<!--制作指示-->
		<div class="shade3"></div>
			<div class="point">
					 <img class="shady1" src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/photoNewBook/zhishi.png">
					 <img class="shady2"  src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/photoNewBook/zhishi1.png">
			</div>
	   <div class="bar1">
		 <span class="Span"></span>/<span class="Span2"></span>
	   </div>

	   	    <!--第几个input-->
	   	    <input type="hidden" name="" class="ranking" value="" />
		    <!--当前页-->
			<input id="current_page" type="hidden" value="1">
		    <!--总页-->
			<input id="all_page" type="hidden" value="">
		    <!--是否为邀请人-->
		    <input id="master" type="hidden" value="">
            <!--检测是否上传过图片-->
            <input id="realPage" type="hidden" value="{$realPage}">
		    <!--模板编号-->
			<input id="ordinal" type="hidden">
		    <!--当前页风格-->
		    <input type="hidden" id="current_ordinal" >
			<!--文字位置-->
			<input id="voice" type="hidden">
			<!--文字位置-->
			<input id="text" type="hidden">
			<!--语音转化类型-->
			<input id="type" type="hidden">
			<!--图片库选择结果-->
			<input id="imgdepot" type="hidden">
			<!--图片库选择结果-->
			<input id="photoId" type="hidden">
			<!--去点上传图片的事件-->
			<input id="remove" type="hidden" value="0"/>
			<!--图片库图片的数量-->
			<input type="hidden"  id="quantity" value="" />
			<!-- 当前页面第几张图片-->
			<input type="hidden" id="direction">
			<!-- 需要回填的图片的位置-->
			<input type="hidden" id="imgbox">
	
			<input type="hidden" id="insert">
			<!--是否为视频-->
			<input type="hidden" id="isvedio">
			<!-- 微信跨域传图片用access-->
			<input type="hidden" id="accessToken" value="{$accessToken}">
			<!-- 风格-->
			<input type="hidden" id="style" value="">
			<!--插页类型-->
			<input type="hidden" id="formwork">
			<!--保存userId-->
			<input type="hidden" class="userId">
			<!--保存pbId-->
			<input type="hidden" class="pbId">
			<!--返回上一页-->
			<input type="hidden" name="" id="recurrence" value="1" />
			<!--第几个文本框-->
			<input type="hidden" name="" class="num" value="" />
			<!--翻页-->
			<div class="previous"></div>
			<div class="next"></div>
			<!--功能栏-->
		<div class="FunctionBar">
			<div class="FunctionBar_1">
					<!--<div class="pageturning" data='1'>翻页</div>-->
					<div class="Transfer fileI" id="openAlbum">图片</div>
					<div class="Transfer2" onclick="Chaye()">插页</div>
					<div class="Transfer3" onclick="moban()">换模板</div>
					<div class="Transfer4" data="1" = "">互换页码</div>
					<div class="warehouse">图片库</div>
			</div>
			<div class="quantity">
				<span class="quantity_span"></span>
			</div>
		</div>
		<!--互换模板页-->
		<div class="pagination">
			<input type="text" class="pag_input1" maxlength="3"  onkeyup="value=value.replace(/[^\d]/g,'')" placeholder="请输数字"/>
			<div class="pag_div">互换</div>
			<input type="text" class="pag_input2"  maxlength="3"  onkeyup="value=value.replace(/[^\d]/g,'')" placeholder="请输数字"/>
		</div>
		<!--主图片库-->
		<div class="warehouse_img">
			<div class="warehouse_div">
				<div class="warehouse_div_1">
				</div>
				<div class="warehouse_div1">
					<div class="uploadToPage" onclick="uploadToPage()">手动排版</div>
					<div class="sctp" onclick="sctp()">删除图片</div>
					<div class="newCompose" onclick="newCompose()"></div>
					<div class="xl" onclick="xl()">收起按钮</div>
				</div>
			</div>		
		</div>
		
		<!--插页模板-->
		<div class="Photolibrary1">
			<div class="affirm">
				<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/photoNewBook/quxiao.png" alt="" class="NO1"/>
				<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/photoNewBook/queding.png" class="OK1"/>
			</div>
			<div class="Images1">

			</div>
		<div class="affirm_1">
			<div class="more">插页</div>
			<div class="more_1">模板</div>
		</div>
		</div>
		<!--选择模板页-->
		<div class="Mould"></div>
		<div class="mouldpage">
			<div class="affirm">
				<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/photoNewBook/quxiao.png" alt="" class="quxiao"/>
				<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/photoNewBook/queding.png" class="queren"/>
			</div>
			<div class="MB">

			</div>

		</div>
		
		<!--选择语音输入方式-->
		<div class="import">
				<div class="fingerboard">键盘输入</div>
				<div class="characters" onclick="Characters(1)">语音转文字</div>
				<div class="code" onclick="Code(2)">语音转二维码</div>
				<div class="cancel">取消</div>
			<!--</div>-->
		</div>
	<!-- 语音窗口  -->
	<div class="voice1 voice_1">
		   <div class="yuyin" id="startWeChatVoice">
				<b>开始录制</b>
			</div>
			<div class="stop" id="stopWeChatVoice">
				<b>录制中</b>
			</div>			
		</div>
		<div class="voice1 voice_2">
		   <div class="yuyin" id="startNativeRecord">
				<b>开始录制</b>
			</div>
			<div class="stop" id="stopNativeRecord">
				<b>录制中</b>
			</div>			
		</div>
		
		<!--选择图片的方式-->
	<div class="Uploadmode">
				<div class="toPhotolibrary" onclick="ToPhotolibrary()">图库选择</div>
				<div class="tocellphone" id="oneupload">手机上传</div>
				<div class="upload-btn btn-old btnn" id="video">上传视频</div>
				<div class="cancel1" onclick="Position()">取消</div>
			</div>
			
		</div>
	<!--图片库-->
		<div class="shade"></div>
		<div class="shade1"></div>
		<div class="Photolibrary" style="background-color: #ffffff">
			<div class="affirm">
				<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/photoNewBook/quxiao.png" alt="" class="NO"/>
				<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/photoNewBook/queding.png" class="OK"/>
			</div>
			<div class="Images">
				<div class="i1">
					
				</div>
			</div>
		</div>
	</div>
	<div class="shade3"></div>
	<div class="shade4"></div>
	<div class="bullet1">
		<div class="bullet-text">是否删除本页</div>
		<div class="bullet-quxiao">取消</div>
		<div class="bullet-queding">确定</div>
	</div>
	<!--提示信息-->
	<div class="am-g wst-msg-modal" id="wst-msg-modal">
		<div class="wst-modal-content" id="wst-modal-content"></div>
	</div>

	<foot>
		<div class="Foot">
			<div class="Editcontent boundbook">编辑内容</div>
			<div class="thread-boundbook">编辑封面</div>
			<div class="accomplish">
				<p>预览书本</p>
			</div>
		</div>
	</foot>
	<!--弹框-->
	<div class="warn">上传失败，请重新上传</div>
	<div class="warn_1" id="warn_1">
		<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/loading.gif"/>
		<a>上传中</a>
	</div>
	<div class="warn_2">上传成功，图片已保存至图片库</div>
	<div class="warn_3">页面互换成功</div>
	<div class="warn_4">
		<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/loading.gif"/>
		<a>解析中</a>
	</div>
	<div class="none_no">取消</div>
	<div class="none_no1">取消保存</div>
	<!--是否保存语音-->
	<input type="hidden" id="none_no" value=""/>
</body>
<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js" > </script> 
<script src="../js/setCookie_1.js"></script>
<script type="text/javascript" src="../js/photoNewBook/layui.js"></script>
<script type="text/javascript" src="../js/photoNewBook/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="../js/photoNewBook/ajax.js"></script>
<script type="text/javascript" src="../js/photoNewBook/ajaxfileupload.js"></script>
<script type="text/javascript" src="../js/qrjs2.min.js"></script>
<script type="text/javascript" src="../js/jQueryRotate.js"></script>
<script src="../js/photoNewBook/zxxFile.js"></script>
<script src="../js/photoNewBook/e-smart-zoom-jquery.min.js"></script>
<script type="text/javascript" src="../js/photoNewBook/webuploader.min.js"></script>
<script src="../js/photoNewBook/script.js"></script>
<script type="text/javascript" src="../js/photoNewBook/templet.js"></script>
<script type="text/javascript" src="../js/photoNewBook/personal.js"></script>
<script type="text/javascript" src="../js/photoNewBook/warn.js"></script>
<script type="text/javascript">
	// 这段代码是固定的，必须要放到js中
function setupWebViewJavascriptBridge(callback) {
    //Android
    if (window.GCWebviewAndroidJSBridge) {
        callback(GCWebviewAndroidJSBridge)
    } else {
        document.addEventListener(
                                  'GCWebviewAndroidJSBridgeReady'
                                  , function() {
                                  callback(GCWebviewAndroidJSBridge)
                                  },
                                  false
                                  );
    }
    
    //iOS
    if (window.GCWebviewJSBridge) {
        return callback(GCWebviewJSBridge);
    }
    if (window.KBWVJSBCallBacks) {
        return window.KBWVJSBCallBacks.push(callback);
    }
    window.KBWVJSBCallBacks = [callback];
    var GCWVJSBIframe = document.createElement('iframe');
    GCWVJSBIframe.style.display = 'none';
    GCWVJSBIframe.src = 'gcwvjsbscheme://__GC_BRIDGE_LOADED__';
    document.documentElement.appendChild(GCWVJSBIframe);
    setTimeout(function() { document.documentElement.removeChild(GCWVJSBIframe) }, 0);
}
    
        // 与OC交互的所有JS方法都要在这里注册,才能让OC和JS之间相互调用
        setupWebViewJavascriptBridge(function(bridge) {
                                     
                                     /* OC给JS提供公开的API, 在JS中可以手动调用此API, 并且可以接收OC中传过来的参数,同时可回调OC */
                                     
                                     
                                     // 图片上传成功返回数据
                                     bridge.registerHandler('storehouse', function(data, responseCallback) {
                                                            console.log("OC中传递过来的参数:", data);
                                                            // 把处理好的结果返回给OC
                                                            var time=data.time;
                                                            var url=data.filepath;
//                                                          alert(url);
                                                            var pbId = sessionStorage.getItem("pbId");
                                                            var userId = sessionStorage.getItem("userId");
                                                            $.ajax({
                                                                   type:"POST",
                                                                   url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/uploadToImgDepot",
                                                                   data:{url:url,pbId:pbId,userId:userId,time:time},
                                                                   dataType:"json",
                                                                   beforeSend: function (XMLHttpRequest) {
                                                                   XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
                                                                   }
                                                                   }).then(data=>{
                                                                   		var quantity=$('.quantity_span').text();
																		var quantity=Number(quantity);
																		var quantity=quantity+1;
																		$('.quantity_span').text(quantity);
																		$('.quantity').css('display','block');
                                                                   			warn5();
                                                                            warn3();
                                                                           })
                                                            });
                                     
                                     //视频上传
                                     bridge.registerHandler('videoupload',function(data, responseCallback){
                                                            

                                                            var url=data.path;
                                                            var page=$('#current_page').val();
                                                            var direction=$('#direction').val();
                                                            var pbId = sessionStorage.getItem("pbId");
                                                            var isvedio=1;
                                                            $.ajax({
                                                                   type:"POST",
                                                                   url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/uploadPhoto",
                                                                   data:{url:url,pbId:pbId,page:page,direction:direction,isvedio:isvedio},
                                                                   dataType:"json",
                                                                   beforeSend: function (XMLHttpRequest) {
                                                                   XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
                                                                   }
                                                                   }).then(json=>{
                                                                           warn5();
                                                                           if(json.status==1){
                                                                           var num=$('#imgbox').val();
                                                                           var page="";
                                                                           page+='<div class="vedioToCode" data-url="'+url+'">';
                                                                           page+='</div>';
                                                                           page+='<div class="upload-div"></div>';
                                                                           $('.img'+num).html(page);
                                                                           toBecomeCode();
                                                                           $('.shade4').css('display','none');                                                                                                                                                   
                                                                           $('.loading').css('display','none');
                                                                           $('.previous').css('display','block');
                                                                           $('.next').css('display','block');
                                                                           $('.FunctionBar').css('display','block');
                                                                           $('.upload-div').css('display','none');
                                                                           $('.shade').css('display','none');
                                                                           $('.Uploadmode').css('display','none'); 
                                                                           $('#remove').val(0);
                                                                           }else{
                                                                           warn1();
                                                                           $('.shade4').css('display','none');
                                                                           $('.loading').css('display','none');
                                                                           $('.upload-div').css('display','none');
                                                                           $('#remove').val(0);
                                                                           $('.shade').css('display','none');
                                                                           $('.Uploadmode').css('display','none'); 
                                                                           }   
                                                                           })
                                                            
                                                            });
                                     //单图上传
                                     bridge.registerHandler('leaf',function(data, responseCallback){
                                                            var url=data.filepath;
                                                            var time=data.time;
                                                            var page=$('#current_page').val();
                                                            var direction=$('#direction').val();
                                                            var pbId = sessionStorage.getItem("pbId");
                                                            var isvedio=$('#isvedio').val();
                                                            $.ajax({
                                                                   type:"POST",
                                                                   url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/uploadPhoto",
                                                                   data:{url:url,pbId:pbId,page:page,direction:direction,time:time},
                                                                   dataType:"json",
                                                                   beforeSend: function (XMLHttpRequest) {
                                                                   XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
                                                                   }
                                                                   }).then(json=>{
                                                                           if(json.status==1){
                                                                           warn5();
                                                                           var nue = $('#imgbox').val();
                                                                           var page = "";
                                                                           var ROOT = "http://www.youyiku-yishu.cn";
                                                                           page += '<img src="'+ROOT+'/'+url+'" class="appearance'+json.appearance+'  targetObj_' + direction + '" id="1"/>';
                                                                           page += '<div class="upload-div"></div>';
                                                                           $('.img' + nue).html('');
                                                                           $('.img' + nue).html(page);
                                                                           $('.shade').css('display', 'none');
                                                                           var file1 = $('.file' + direction);
                                                                           file1.outerHTML = '';
                                                                           $('.upload-btn1').html('');
                                                                           $('.Uploadmode').css('display', 'none');
                                                                           $('.previous').css('display','block');
                                                                           $('.next').css('display','block');
                                                                           $('.FunctionBar').css('display','block');
                                                                           }else{
                                                                            warn1();
                                                                           $('.Uploadmode').css('display', 'none');
                                                                           $('.FunctionBar').css('display','block');
                                                                           $('.shade').css('display', 'none');
                                                                           }                                                                                                                                                      
                                                                           })
                                });		                                                            
							    //语音转文字
								bridge.registerHandler('pronunciation',function(data, responseCallback){
												 		var	Text=data;
//												 		alert(Text);
												 		var num=$('.num').val();
												 		$('.text'+num).html(Text);
														var pbId = sessionStorage.getItem("pbId");
														var page=$('#current_page').val();
														var direction=$('.ranking').val();
													            $.ajax({
																		type:"POST",
																		url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/saveTxt",
																		data:{Text:Text,pbId:pbId,page:page,direction:direction},
																		dataType:"json",
																		beforeSend: function (XMLHttpRequest) {
																			 XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
																		    }
																		}).then(data=>{
																		$('.shade').css('display','none');
                               											$('.voice_1').css('display','none');
																	 })
								});
					                                     
					             // 语音上传成功返回数据
					            bridge.registerHandler('recognition', function(data, responseCallback) {
					                console.log("OC中传递过来的参数:", data);
					                 // 把处理好的结果返回给OC              
					                  var url=data.path;                            
						              var page=$('#current_page').val();
						              var direction=$('.ranking').val();
						              var num=$('.num').val();
						              var pbId = sessionStorage.getItem("pbId");
						               $.ajax({
											type:"POST",
											url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/saveVideo",
											data:{url:url,pbId:pbId,page:page,direction:direction},
											dataType:"json",
											beforeSend: function (XMLHttpRequest) {
														   XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
											} 
												}).then(json=>{                                                                                        
					                                 if(json.status==1){			                                 	
					                                 var page1="";
					                                 page1+='<div class="erWeiMa" data-url="'+url+'"></div>'
					                                 $('.text'+num).html(page1);
					                                  tobecode();
					                                    $('.shade').css('display','none');
                                 						$('.voice_2').css('display','none');
                                 						getPage(page);
					                                  }else{
					                                    $('.shade').css('display','none');
                                   						$('.voice_2').css('display','none');
					                                  }
													})                            
					                });
           
                                                            
                                                            
                                     
                                     
                                     //图像 调用OC中的打开相册方法 允许上传10张
                                     document.getElementById('openAlbum').onclick = function () {
                                     bridge.callHandler('openNativeAlbum', {'maxNum':'10'}, function responseCallback(responseData) {
                                                        console.log("OC中返回的参数:", responseData)
                                                        });
                                     };
                                                                        
                                     
                                     // 手机上传 调用OC中的打开相册方法 只允许一张图片
                                     document.getElementById('oneupload').onclick = function () {
                                     bridge.callHandler('openNativeAlbum', {'maxNum':'1','cover':'4'}, function responseCallback(responseData) {
                                                        console.log("OC中返回的参数:", responseData)
                                                        });
                                     };
                                 
                                     // 调用OC中的打本地视频
                                     document.getElementById('video').onclick = function () {
                                     bridge.callHandler('openNativeVideo', {'count':'1'}, function responseCallback(responseData) {
                                                        console.log("OC中返回的参数:", responseData)
														<!--alert(responseData['myerror']);-->
                                                        });
                                     };
                                      // 调用OC中的微信识别开始
						            document.getElementById('startWeChatVoice').onclick = function () {
						                  bridge.callHandler('weChatVoice', {'type':'start'},function responseCallback(responseData) {
						                    console.log("OC中返回的参数:", responseData)
						                    alert(responseData['message']);
						                });
						             };
						            // 调用OC中的微信识别结束
						            document.getElementById('stopWeChatVoice').onclick = function () {
						                bridge.callHandler('weChatVoice', {'type':'stop'},function
						                    responseCallback(responseData) {
						                    console.log("OC中返回的参数:", responseData)
						                    alert(responseData['message']);
						                });
						            };
						            //开始录音                         
						            document.getElementById('startNativeRecord').onclick = function () {
						                    bridge.callHandler('nativeRecord', {'type':'start'},function responseCallback(responseData) {
						                        console.log("OC中返回的参数:", responseData)
						                });
						            };
						            //录音结束开始上传
						            document.getElementById('stopNativeRecord').onclick = function () {
						                     bridge.callHandler('nativeRecord', {'type':'stop'},function responseCallback(responseData) {
						                        console.log("OC中返回的参数:", responseData)
						                        alert(responseData['myerror']);
						                });
						            };
            					
                                     
      });  

</script>
</html>

